<html>
<body style="margin:0px;padding:5px;background-color:#E7EBEF">
<?php
if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
global $curruser;
global $g_color;
global $g_conf;
if ($curruser['acl'] == 1)
{
    $conf = new Config();
    $news = $conf->Get("news_en");
    if ($news != "")
    {
        $news = "<font color=red>" . $news . "</font>&#12288;&#12288;";
    }
    /*if (2 <= $curruser['acl'])
    {
        $en = $conf->Get("news_en");
        if ($en != "")
        {
            $news = $news . "<font color='#008F00'><b>管理层公告: </b>" . $en . "</font>&#12288;&#12288;";
        }
    }
    if ($news == "")
    {
        $news = $conf->Get("news");
    }
    else
    {
        $news = $news . $conf->Get("news");
    }*/
    echo "<table width='100%' border=\"0\"  style='background-color:#E7EBEF' cellspacing=\"1\" cellpadding=\"1\" bordercolor=\"" . $g_color . "\">\r\n      <tr>\r\n  <td width=\"99%\" style='background-color:#E7EBEF;white-space:normal' valign=middle id=\"newsmarquee\">\r\n           <marquee BEHAVIOR=SCROLL scrolldelay=\"200\" id=\"newsClc\" align=middle bgcolor=white onmouseover=this.stop() onmouseout=this.start()\r\n           style=\"font-size:11pt;background-color:#E7EBEF\">\r\n    \t\t" . $news . "\r\n    \t\t</marquee>\r\n        </td>\r\n      </tr>\r\n    </table><br>";
    $color = $conf->Get("newsClc");
    $color = $color ? $color : "red";
    echo "\r\n  ";
    echo "<s";
    echo "cript>\r\n  function reMyTag(oObj){\r\n   var str = oObj.innerHTML;\r\n   str = str.replace(/\\133/g, \"";
    echo "<s";
    echo "trong style='color:";
    echo $color;
    echo ";'>\");\r\n   str = str.replace(/\\135/g, \"</strong>\");\r\n   oObj.innerHTML = str;\r\n  }\r\n  reMyTag(document.getElementById(\"newsClc\"));\r\n  </script>    \r\n";
}
echo "\r\n\r\n";
?>
</body>
</html>